//
//  TYHTabBarButton.m
//  GKBB-iOS
//
//  Created by tanyuehong on 16/7/1.
//  Copyright © 2016年 xkw. All rights reserved.
//

#import "TYHTabBarButton.h"

// 内部图片所占比例
#define XXTabBarButtonImageRatio 0.7
// 内部文字大小
#define XXTabBarButtonTitleSize 10.0

// 文字颜色
#define XXTabBarButtonTitleColor XXColor(117, 117, 117)
#define XXTabBarButtonTitleSelColor XXColor(234, 103, 7)

@implementation TYHTabBarButton

- (id)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        // 设置内部图片和文字格式
        self.imageView.contentMode = UIViewContentModeCenter;
        self.titleLabel.textAlignment = NSTextAlignmentCenter;
        self.titleLabel.font = [UIFont systemFontOfSize:XXTabBarButtonTitleSize];
//        [self setTitleColor:XXTabBarButtonTitleColor forState:UIControlStateNormal];
//        [self setTitleColor:XXTabBarButtonTitleSelColor forState:UIControlStateSelected];
        
    }
    return self;
}

@end
